﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Ccit.Utils
{
    /// <summary>
    /// 通用字典类消息对象
    /// </summary>
    public class DictLib
    {
        #region private attributes

        private string _dictValue;
        private string _dictText;
        #endregion

        #region public attributes
        /// <summary>
        /// 字典值
        /// </summary>
        public string dictValue
        {
            get { return ((!string.IsNullOrEmpty(_dictValue)) ? _dictValue : ""); }
            set { _dictValue = value; }
        }

        /// <summary>
        /// 字典显示文本
        /// </summary>
        public string dictText
        {
            get { return ((!string.IsNullOrEmpty(_dictText)) ? _dictText : ""); }
            set { _dictText = value; }
        }
        #endregion

        #region constructor
        /// <summary>
        /// 构造函数
        /// </summary>
        public DictLib() { }

        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="DictText">显示文本</param>
        /// <param name="DictValue">对应值</param>
        public DictLib(string DictText, string DictValue)
        {
            this._dictText = DictText;
            this._dictValue = DictValue;            
        }
        #endregion
    }
}
